<?php 
	ini_set('display_errors', 0);
	$page=$_SERVER['REQUEST_URI'];
	//echo $page;
	if($page==$this->url('phonebookadd-user', array('action' => 'phonebookadd-user'))){
			$phonebookadd="active";
	}else if($page==$this->url('account', array('action' => 'account'))){
		$account="active";
	}else if($page==$this->url('call-details', array('action' => 'call-details'))){
		$callrecords="active";
	}
?>
<!DOCTYPE html>
<html>

<!--CONTENT SECTION START-->

<div id="main-wrapper-sec">

<section>

	<!--INNER MAIN TITLE SECTION START-->

    <h2 class="inner-main-title pr-title">login</h2>
    
    <!--INNER MAIN TITLE SECTION END-->
    
    <!--CONTENT MAIN SECTION START-->
    
  <div class="content-main-sec">
  
  <!--INNER CONTENT LEFT MENU SECTION START-->  
  
  <ul class="inner-left-menu-sec">
   <?php include('leftmenu.phtml');?>
  </ul>
  
  <!--INNER CONTENT LEFT MENU SECTION END-->
  
  <!--INNER CONTENT RIGHT SECTION START-->
  
  <article class="inner-cont-right-sec">
  
  <h1 class="inner-cont-title">Contact</h1>
  
  <!--FILRER BY SECTION START-->
  
  <ul class="acc-sd-sec">
  <li>
  <div class="fb-sec">
  <a href="#" onclick="delValue(this.form)">Delete</a>
  <a href="#" onclick="updateValue(this.form)">Update</a>
  <a href="<?php echo $this->url('phonebookadd-user', array('action' => 'phonebookadd-user')); ?>" class="active">Add</a>
  </div>
  </li>
  </ul>
  
  <!--FILRER BY SECTION END-->
  
  <div class="clear"></div>
  
  <!--USAGE GRAPH CONTENT MAIN SECTION START-->
  
  <article class="ug-main-cont-sec">
  
  <!--USAGE STATITICS SECTION START-->
 
  
  <!--USAGE STATITICS SECTION END-->
  
  <!--TOP DESTINAION SECTION START-->
  
  <aside class="">
  
  <div class="cd-sf-sec">
	<form id="formid" method="post" >
		<table width="100%" cellpadding="0" cellspacing="0" border="0">
		  <tr class="title">
		  <td width="10%" align="left" valign="middle"><input type="checkbox" name="list" id="list"  style="vertical-align:middle;margin-top:-3px"/>&nbsp;&nbsp; Select</td>
		  <td width="20%" align="center" valign="middle" class="td-price">Name</td>
		  <td width="20%" align="center" valign="middle" class="td-price">Mobile Number</td>
		  <td width="35%" align="left" valign="middle">Contact Address</td>
		  </tr>
		
		  <tr>
		  <td align="left" valign="middle"><input type="checkbox" name="list" id="list0" value="1" /></td>
		  <td align="center" valign="middle" class="td-price">$5.64</td>
		  <td align="center" valign="middle">19 hours</td>
		  <td align="left" valign="middle">19 hours</td>
		  </tr>
		  
		  <tr>
		  <td align="left" valign="middle"><input type="checkbox" name="list" id="list1" value="2" /></td>
		  <td align="center" valign="middle" class="td-price">$5.64</td>
		  <td align="center" valign="middle">19 hours</td>
		  <td align="left" valign="middle">19 hours</td>
		  </tr>

		  <tr>
		  <td align="left" valign="middle"><input type="checkbox" name="list" id="list2" value="3"/></td>
		  <td align="center" valign="middle" class="td-price">$5.64</td>
		  <td align="center" valign="middle">19 hours</td>
		  <td align="left" valign="middle">19 hours</td>
		  </tr>
		  
		  <tr>
		  <td align="left" valign="middle"><input type="checkbox" name="list" id="list3" value="4"/></td>
		  <td align="center" valign="middle" class="td-price">$5.64</td>
		  <td align="center" valign="middle">19 hours</td>
		  <td align="left" valign="middle">19 hours</td>
		  </tr>
		  
		  </table>
	  </form>
  </div>
  
  </aside>
  
  <!--TOP DESTINAION SECTION END-->
  
  </article>
  
  <!--USAGE GRAPH CONTENT MAIN SECTION END-->
  
  </article>
  
  <!--INNER CONTENT RIGHT SECTION END-->
  
  </div>
  
  <!--CONTENT MAIN SECTION END-->
  
  <div class="clear"></div>
  
  <!--CLIENTS AREA SECTION START-->
  
 <aside class="content-main-sec ot-lg-sec"> <img src="<?php echo $this->basePath(); ?>/images/truste.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/secured.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/mcafeev.jpg" alt="">
 <h3 class="otg-title">Trusted. Safe. Reliable.</h3>
 </aside>
  
  <!--CLIENTS AREA SECTION END-->
  
  <div class="clear"></div>
</section>

</div>

<!--CONTENT SECTION END--> 

</body>
</html>
<script>
	function updateValue(){
		 var fields = $("input[name='list']").serializeArray(); 
		if (fields.length == 0) 
		{ 
			alert('nothing selected'); 
			// cancel submit
			return false;
		} 
		else 
		{ 
			alert(fields.length + " items selected"); 
		}
	}
	function delValue(){
	 var fields = $("input[name='list']").serializeArray(); 
		if (fields.length == 0) 
		{ 
			alert('nothing selected'); 
			return false;
		}else{ 
			var r=confirm("if you want delete press ok");
			if (r==true)
			  {
				$('input[name="list"]:checked').each(function() {
					alert(this.value);
				});
			}
		}
	}
</script>